<?php

namespace app\Http\Controllers\API;

use Auth;
use App\User;
use App\Creative;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Validator;
use Illuminate\Http\Request;

class CreativeController extends Controller
{
    public function query()
    {
        $comments = Creative::where('status', 1)->orderBy('created_at', 'desc')->get();
        return response()->json($comments);
    }
}
